import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login/login'
import orderDetail from '@/components/orderDetail/orderDetail'
import address from '@/components/address/address'
import orders from '@/components/orders/orders'
Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      component: login
    },
    {
      path: '/orderDetail',
      component: orderDetail
    },
    {
      path: '/address',
      component: address
    },
    {
      path: '/orders',
      component: orders
    },
    {
      path: '/login',
      component: login
    }
  ],
  mode:'history'
})
